<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>
</head>
<body>
<h2>ITDragon</h2>
<p th:text="&{thText}"/>
<p th:utext="&{thUText}"/>

<input type="text" th:value="&{thValue}"/>
<input type="text" value="等等">

<div th:each="message : ${thEach}">
    <p th:text="${message}"/>
</div>

<div th:each="message : ${thEach}">
    <p th:text="${message}" th:each="message : ${thEach}"/>
</div>

<p th:text="${thIf}" th:if="&{not #strings.isEmpty(thIf)}"></p>

<div th:insert="~{index::copy}"></div>
<div th:insert="index :: copy"></div>
<div th:replace="index :: copy"></div>
<div th:include="index :: copy"></div>

<div th:object="${thObject}">
    <p>ID:<span th:text="*{age}"/></p>
    <p>IH:<span th:text="*{name}"/></p>
    <p>ID:<span th:text="*{sex}"/></p>
</div>

<div th:text="${session.user}"></div>

<h3>#strings</h3>
<div th:if="${not #strings.isEmpty(itdragonStr)}">
    <p>Old Str:<span th:text="${itdragonStr}"/></p>
    <p>toUpperCase:<span th:text="${#strings.toUpperCase(itdragonStr)}"/></p>
    <p>toLowerCase:<span th:text="${#strings.toLowerCase(itdragonStr)}"/></p>
    <p>equals:<span th:text="${#strings.equals(itdragonStr,'itdragonblog')}"/></p>
    <p>equalsIqnoreCase:<span th:text="${#strings.equalsIqnoreCase(itdragonStr,'itdragonblog')}"/></p>
    <p>indexOf:<span th:text="${#strings.indexOf(itdragonStr,'r')}"/></p>
    <p>substring:<span th:text="${#strings.substring(itdragonStr,2,4)}"/></p>
    <p>replace:<span th:text="${#strings.replace(itdragonStr,'fd','IT')}"/></p>
    <p>startsWith:<span th:text="${#strings.startsWith(itdragonStr,'it')}"/></p>
    <p>contains:<span th:text="${#strings.contains(itdragonStr,'IT')}"/></p>
</div>

<h3>#number</h3>
<div>
    <p>四舍五入：<span th:text="${#numbers.formatDecimal(itdragonNum,0,2)}"/>
    <p>整数保留：<span th:text="${#numbers.formatDecimal(itdragonNum,5,2)}"/>
</div>

<h3>#bools</h3>
<div th:if="${#bools.isTrue(itdragonBool)}">
    <p th:text="${itdragonBool}"></p>
</div>

<h3>#arrays</h3>
<div th:if="${not #arrays.isEmpty(itdragonArray)}">
    <p></p>
    <p></p>
    <p></p>
</div>

<h3></h3>
<div>

</div>
</body>
</html>